package com.czk.asmutils.asmifierandtextifier;

import org.objectweb.asm.util.ASMifier;
import org.objectweb.asm.util.Textifier;

import java.io.IOException;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/9/8 17:16
 */
public class AsmifierDemo {
    public static void main(String[] args) throws IOException {
        String[] array = new String[]{
                // debug模式，跳过调试信息
                "-debug",
                "com.czk.asmutils.checkAdaptor.ASMPrint"
        };
        // 打印ASMPrint的ASM代码
        ASMifier.main(array);
        // 打印ASMPrint的字节码代码
        System.out.println("===============================");
        Textifier.main(array);
    }

}
